package com.woniu.adminservice.controller;

import com.woniu.adminservice.commeon.CommonResult;
import com.woniu.adminservice.service.OrderDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Auther: huangjing  <br/>
 * Date: 2020/3/24$:17:42$  <br/>
 * Description:
 */
@Controller
@RequestMapping("/orderData")
public class OrderDataController {
    @Autowired
    OrderDataService orderDataService;
    @GetMapping("/list")
    @ResponseBody
    public CommonResult orderList(){
    List orderList=    orderDataService.selectOrderList();
        return CommonResult.success(orderList);
    }
}